from utils import prep_dict_indep, current_timestamp
from utils import gaussian_pulse as pulse_f
import numpy as np
from fidelity_grid import fid_append

input_dict = prep_dict_indep()
h_offset, total_height, stdev_mul, meas_t = (0.05, 0.4, 0.1, 6.)
var_names = ['h_offset','h_peak','stdev','meas_t']
var_tpl = (h_offset, total_height, stdev_mul, meas_t)
h_offset, h_peak, stdev, meas_t = \
        var_tpl[0], var_tpl[1]-var_tpl[0], var_tpl[2]*var_tpl[3], var_tpl[3]
gammas = [0., 0.]
gamma_names = ['gamma_d', 'gamma_r']
saved_dict = fid_append(var_tpl, var_names, gammas, gamma_names, pulse_f, input_dict)
